package 正则表达式;

public class Reg2 {
    public static void main(String[] args) {
        String s="string";
        //[\u4e00-\u9fa5]是汉字Unicode编码区间
       String patten=".*[\u4e00-\u9fa5].*";
       //.matches(reg)
       // "".replaceAll("aa","as")不是用正则表达式
        //.replaceAll(reg,"ss")
        //"".replaceFirst(reg,"ss");
        //"".split(reg)
        System.out.println(s.matches(patten));
    }
}
